# README

Replication files for: "Residential mobility and persistently depressed voting among disadvantaged adults in a large housing experiment"

This Harvard Dataverse repository contains the replication R code and the disclosed results for the paper "Residential mobility and persistently depressed voting among disadvantaged adults in a large housing experiment" by David Knight and Baobao Zhang (forthcoming in the Proceedings of the National Academy of Sciences of the United States of America). 

For this project, we used Restricted-Use Data housed at the U.S. Census Bureau; we accessed the data and performed the analysis at the Federal Statistical Research Data Center at Cornell University. We are not able to make these data to publicly available to protect the privacy of the study participants. Researchers who want to replicate and/or expand upon our study can apply for data access through a Federal Statistical Research Data Center using the Standard Application Process. The code to conduct our analyses is available via this repository. Note that some aspects of the analysis R code is redacted as required by the U.S. Census Bureau disclosure process. In addition to the code used to generate the results reported in our paper, this repository also contains all the statistical results disclosed as part of our research project. 

To access the data used in our study, researchers would submit a common application through the Standard Application Process portal: https://www.census.gov/about/adrm/fsrdc.html.


Files:

## Disclosed statistical results
- output_disclosure_0.xlsx: main results by age group
- output_disclosure_1.xlsx: p-values for the results in output_disclosure_0.xlsx
- output_disclosure_2.xlsx: demographic subgroup analysis (gender, race/ethnicity)
- output_disclosure_3.xlsx: additional analysis performed as robustness checks and in response to reviewer comments; quality check of the record linkage process 

## R code
- PNAS_disclosure_script.R: R code to clean and analyze the data for the paper; note that some lines in the code are redacted 
- mto_code_figures_tables.Rmd: R code to generate the figures and tables for the paper using the disclosed statistical results Excel files